package com.topvision.service.impl.hes;

import com.topvision.vo.hes.HesCallVO;
import com.topvision.vo.hes.HesUserVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.topvision.mapper.hes.HesUserMapper;
import com.topvision.model.hes.HesUser;
import com.topvision.service.hes.HesUserService;

@Service("hesUserService")
public class HesUserServiceImpl implements HesUserService {
	@Autowired
	private HesUserMapper hesUserMapper;
	
	@Override
	public HesUser queryObject(Long userId){
		return hesUserMapper.queryObject(userId);
	}
	
	@Override
	public List<HesUserVO> queryList(Map<String, Object> map){
		return hesUserMapper.queryListVO(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return hesUserMapper.queryTotal(map);
	}
	
	@Override
	public void save(HesUser hesUser){
		hesUserMapper.save(hesUser);
	}
	
	@Override
	public void update(HesUser hesUser){
		hesUserMapper.update(hesUser);
	}
	
	@Override
	public void delete(Long userId){
		hesUserMapper.delete(userId);
	}
	
	@Override
	public void deleteBatch(Long[] userIds){
		hesUserMapper.deleteBatch(userIds);
	}

	@Override
	public void batchInsert(List<Map<String, Object>> mapListJson) {
		hesUserMapper.batchInsert(mapListJson);
	}

	@Override
	public void truncateTable() {
		hesUserMapper.truncateTable();
	}

	@Override
	public List<HesUserVO> findByUserName(Map<String, Object> map) {
		return hesUserMapper.findByUserName(map);
	}

	@Override
	public List<HesCallVO> callUsers(Map<String, Object> map) {
		return hesUserMapper.callUsers(map);
	}

}
